package com.css.fxfzypg.modules.resultManagement.reportManagement.repository;

import com.css.fxfzypg.modules.resultManagement.reportManagement.VO.ReportInfoVO;
import com.css.fxfzypg.modules.resultManagement.reportManagement.VO.ReportManagementVO;
import com.css.fxfzypg.modules.resultManagement.reportManagement.entity.HistoryUploadReport;
import com.css.fxfzypg.modules.resultManagement.reportManagement.entity.ReportManagement;
import com.css.fxfzypg.modules.resultManagement.reportManagement.ypg.SeismicCapacityAnalysis;

import java.util.List;
import java.util.Map;
import java.util.Objects;

/**
 * @author DBJ
 */
public interface ReportManagementRepository {
    Map<String, Object> findParentTask(String parentId, ReportManagementVO vo, int curPage, int pageSize);

    ReportManagement getReportByTaskId(String taskId);

    void save(ReportManagement reportManagement);

    void update(ReportManagement reportManagement);

    ReportManagement getReportById(String id);

    void saveHistoryUploadReport(HistoryUploadReport historyUploadReport);

    Map<String, Object> getHistoryReportByTaskId(String taskId,int curPage,int pageSize);

    Map<String, Object> getHistoryReportByTaskId(String taskId,int curPage,int pageSize, String type);

    HistoryUploadReport getHistoryUploadReportById(String reportId);

    void submitReview(String reportId);

    ReportManagement getReport(String id,String reportStatus,String reviewStatus);

    List<Map<String,Object>> getSubArea(String taskId);

    List<Map<String,Object>> getSubArea(List<String> taskIdList);


    String getReviewOpinion(String reportId);

    List<ReportInfoVO> getReportInfo();

    public Boolean getSTIntersects(String geomText, String geomText1);
}
